<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<%@ include file="/WEB-INF/common/public.jspf"%>
		<%@ include file="/WEB-INF/common/easyui.jspf"%>

		<title>查询列表</title>
	</head>

	<body>
		<script type="text/javascript">
			$(function() {

				$('#list').datagrid({
					url: '/signin/signinList?starttime='+parent.$("#starttime1234").val(),
					pagination: true,
					fitColumns: true,
					method:"get",
					striped: true,
					idField: 'stuId',
					loadMsg: '正在加载数据,请稍等.',
					rownumbers: true,
					fit: true,
					remoteSort: false,
					columns: [
						[{
							checkbox: true
						},{
							field: 'classId',
							title: '班级编号',
							sortable: true,
							width: 300,
						},{
							field: 'stuId',
							title: '学号',
							sortable: true,
							width: 300
						}, {
							field: 'name',
							title: '学生姓名',
							sortable: true,
							width: 300,

						}, {
							field: 'status',
							title: '是否签到',
							sortable: true,
							width: 300
						}, {
							field: 'signintime',
							title: '签到时间',
							sortable: true,
							width: 300
						}]
					],
					 toolbar: [ {
							text: '导出excel',
							iconCls:'icon-save',
							handler:function (){
								
								var form = $("<form>");
								form.attr('style', 'display:none');
								form.attr('target', '');
								form.attr('method', 'get'); //请求方式
								form.attr('action', '/signin/export');//请求地址
								var input1 = $('<input>');
								input1.attr('type', 'hidden');
								input1.attr('name', 'starttime');//该输入框的name
								input1.attr('value',parent.$("#starttime1234").val());//该输入框的值
								$('body').append(form);
								form.append(input1);

								form.submit();
								form.remove();
							}
						}]
 
				});
				
				

			})
		</script>
		<table id="list"></table>
		
	</body>

</html>